import axios from "../../../axios"


// 具体餐厅的遍历数据
export const showHotel = () => {
    return axios.request({
        url:'/shops/shopper/store/show/shop',  
    })
}


// 点击主评论的回复会出现的内容
export const comment1 = (param)=>{
    return axios.request({
        url:'/shops/comment/getReply',  
        method:'post',
        params:param
    })
}

// 遍历根评论
export const showRoot = (param) => {
    return axios.request({
        url:'/shops/comment/getComment/shop',  
        params:param
    })
}

// 遍历是否点过赞
export const good = (param) => {
    return axios.request({
        url:'/shops/comment/getComment/shop',  
        params:param
    })
}


// 回复主评论
export const shallowReactive = (param) => {
    return axios.request({
        url:'/shops/comment/reply',  
        method:'post',
        params:param
    })
}


// 遍历主评论下的子评论
export const replySon = (param) => {
    return axios.request({
        url:'/shops/comment/getReply',  
        params:param
    })
}

// 删除主评论
export const delComment = (param) => {
    return axios.request({
        url:'/shops/comment/delete',  
        method:'delete',
        params:param
    })
}

// 点赞主评论
export const thumbSon = (param) => {
    return axios.request({
        url:'/shops/comment/comment/like',  
        method:'post',
        params:param
    })
}